LOCAL_PATH := $(call my-dir)


include $(CLEAR_VARS)
LOCAL_CFLAGS :=
LOCAL_MODULE := tcpclient
LOCAL_SHARED_LIBRARIES := 
LOCAL_C_INCLUDES += $(LOCAL_PATH)
LOCAL_SRC_FILES :=  ../tcpclt.c 
LOCAL_LDFLAGS += -pie -fPIE
LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib -llog 
include $(BUILD_EXECUTABLE)

include $(CLEAR_VARS)
LOCAL_CFLAGS :=
LOCAL_MODULE := tcpserver
LOCAL_SHARED_LIBRARIES := 
LOCAL_C_INCLUDES += $(LOCAL_PATH)
LOCAL_SRC_FILES :=  ../tcpsrv.c 
LOCAL_LDFLAGS += -pie -fPIE
LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib -llog
include $(BUILD_EXECUTABLE)


include $(CLEAR_VARS)
LOCAL_CFLAGS :=
LOCAL_CPPFLAGS += -lstdc++ -fexceptions
LOCAL_MODULE := librawsocket
LOCAL_SHARED_LIBRARIES := 
LOCAL_C_INCLUDES += $(LOCAL_PATH)
LOCAL_SRC_FILES :=  ../librawsocket.cpp 
LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib -llog
include $(BUILD_SHARED_LIBRARY)


include $(CLEAR_VARS)
LOCAL_CFLAGS :=
LOCAL_MODULE := test
LOCAL_SHARED_LIBRARIES := 
LOCAL_C_INCLUDES += $(LOCAL_PATH)
LOCAL_SRC_FILES :=  ../test.cpp
LOCAL_LDFLAGS += -pie -fPIE
LOCAL_SHARED_LIBRARIES := librawsocket
LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib -llog
include $(BUILD_EXECUTABLE)
